﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace AppUtility
{
    public class Util
    {
        private string _connectionString;
        /// <summary>
        /// Get the Connection path of Data base ..
        /// </summary>
        public static string ConnectionString
        {
            get
            {
                return ConfigurationManager.ConnectionStrings["connectionString"].ConnectionString;
            }
        }
        /// <summary>
        /// Error Message for Login Failed ..
        /// </summary>
        public string InvalidLogin
        {
            get
            {
                return ConfigurationManager.AppSettings["InvalidLogin"].ToString();
            }
        }
    }

    public class JsonResponse
    {
        public enum Status
        {
            Success,
            Failed
        }

        public object Data { get; set; }
        public string ErrorMessage { get; set; }
        public Status StatusCode { get; set; }
    }
}
